package com.gkt.ec.cms.activity.dao;

import com.github.pagehelper.PageInfo;
import com.gkt.ec.cms.activity.model.domain.CompanyEntity;
import com.gkt.ec.cms.activity.model.pojo.SearchCompanyVO;
import com.gkt.ec.commons.shared.persistence.CrudDao;
import com.gkt.ec.commons.shared.persistence.annotation.MyBatisDao;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

/**
 * @author Huzl
 * @version 1.0.0
 */
@MyBatisDao
public interface CompanyDao extends CrudDao<CompanyEntity>{

    CompanyEntity get(Long id);
    List<CompanyEntity> queryAll(SearchCompanyVO searchCondition,RowBounds rowBounds);
    List<CompanyEntity> querySelectedCompany(SearchCompanyVO searchCondition,RowBounds rowBounds);
    List<CompanyEntity> querySelectCompany(SearchCompanyVO searchCondition,RowBounds rowBounds);
    int deleteAll(List<Long> ids);
    List<CompanyEntity> queryCompanyByName(String companyName);
}
